package com.checker.designPattern.creation.factory;

interface FactoryPattern {
    TestObject createObject();
}

class FactoryA implements FactoryPattern{
        @Override
        public TestObject createObject() {
                return new ObjectA("ObjectA");
        }
}

class FactoryB implements FactoryPattern{
        @Override
        public TestObject createObject() {
                return new ObjectB("ObjectB");
        }
}
